<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>修改个人信息</title>
</head>
<body>
<h1>修改个人信息</h1>
<% if (request.getParameter("error") != null) { %>
<p style="color:red;"><%= request.getParameter("error") %></p>
<% } %>
<% com.employeemanagementsystem.model.User user = (com.employeemanagementsystem.model.User) session.getAttribute("user"); %>
<form action="update_user_info" method="post">
    姓名: <input type="text" name="fullName" value="<%= user.getFullName() %>" required/><br/>
    邮箱: <input type="email" name="email" value="<%= user.getEmail() %>" required/><br/>
    部门: <input type="text" name="department" value="<%= user.getDepartment() %>" required/><br/>
    职位: <input type="text" name="position" value="<%= user.getPosition() %>" required/><br/>
    <button type="submit">保存修改</button>
</form>
<a href="employee_home.jsp">返回首页</a>
</body>
</html>



